package com.fresh.system.until;

import com.fresh.common.ResponseResult;
import com.fresh.entity.FreshGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author Wx
 * @Date:2023/08/09/10:51
 * @Description:
 */
@FeignClient("system-goods")
public interface GoodsClient {
    @RequestMapping(value = "/goods/selectById" ,method = RequestMethod.GET)
    ResponseResult selectById(@RequestParam("goodsId")Integer goodsId);

    @RequestMapping(value = "/goods/updateById" ,method = RequestMethod.GET)
    void updateById(@RequestParam("goodsId")Integer goodsId,@RequestParam("stock")Integer stock);
}
